package tech.waterism.document;

import cn.hutool.core.lang.ObjectId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.*;

import java.time.LocalDateTime;

@Data
//@Document("f_dispatch_bmp")
@ApiModel(description = "调度图形信息")
public class DispatchBmpDocument {

    @Id
    @JsonIgnore
    @ApiModelProperty("由MongoDB自动生成主键ObjectId")
    private ObjectId id;

    @ApiModelProperty(value = "任务编号")
    private Integer jmsid;
    /**
     * 位图
     */
    @ApiModelProperty(value = "位图")
    private Object bmp;
    /**
     * 数据
     */
    @ApiModelProperty(value = "数据")
    private Object data;

    @CreatedBy
    @ApiModelProperty("创建者")
    private String createdBy;

    @CreatedDate
    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;

    @LastModifiedBy
    @ApiModelProperty("更新者")
    private String lastModifiedBy;

    @LastModifiedDate
    @ApiModelProperty("更新时间")
    private LocalDateTime lastModifiedDate;
}
